package com.itheima.day08.Zuoye.Zuoye4;

public class Person {
        private int idCard;
        private String userName;

    @Override
    public String toString() {
        return "Person{" +
                "idCard=" + idCard +
                ", userName='" + userName + '\'' +
                '}';
    }

    public Person(int idCard, String userName) {
        this.idCard = idCard;
        this.userName = userName;
    }

    public int getIdCard() {
            return idCard;
        }

        public void setIdCard(int idCard) {
            this.idCard = idCard;
        }

        public String getUserName() {
            return userName;
        }

        public void setUserName(String userName) {
            this.userName = userName;
        }
        // 以下是getter和setter方法
        // 省略
    }
